public class TestRect {
	public static void main(String[] args) {
		int h = 10;
		int w = 30;
		System.out.println("Area:"+calArea(h,w));
		System.out.println("Perimeter:"+calPerimeter(h,w));
	}

	public static int calArea(int height,int width) {
		return height*width;
	}

	public static int calPerimeter(int height,int width) {
		return 2*(height+width);
	}
}